﻿using System.Configuration;

namespace Isaac.Joy.Ormapping.Contract
{
    public class DatabaseSettings : ConfigurationSection
    {
        private const string DefaultDatabaseProperty = "defaultDatabase";

        /// <summary>
        /// Section名称
        /// </summary>
        public const string SectionName = "dataConfiguration";

        /// <summary>
        /// 获取或设置默认IDatabase配置实例的名称
        /// </summary>
        [ConfigurationProperty(DefaultDatabaseProperty)]
        public string DefaultDatabase
        {
            get
            {
                return (string)this[DefaultDatabaseProperty];
            }
            set
            {
                this[DefaultDatabaseProperty] = value;
            }
        }
    }
}
